-- GENERATED SPELL FOR [Freezing Ghoul] --


function spell0_1796(pUnit, Event) --@Flash Freeze,Self--
pUnit:FullCastSpellOnTarget(16803,pUnit)
pUnit:RegisterEvent('Sorts_1796', 5325, 1)
end

function spell1_1796(pUnit, Event) --@Flash Freeze,Self--
pUnit:FullCastSpellOnTarget(64141,pUnit)
pUnit:RegisterEvent('Sorts_1796', 6500, 1)
end

function Sorts_1796(pUnit, Event)
local choix_sorts_1796 = math.random(0, 1)
if choix_sorts_1796 == 0 then
pUnit:RegisterEvent('spell0_1796', 1, 1)
end
if choix_sorts_1796 == 1 then
pUnit:RegisterEvent('spell1_1796', 1, 1)
end
end

function mob1796_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1796', math.random(1500, 3000), 1)
end

function mob1796_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1796_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1796_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1796, 1, 'mob1796_Action')
RegisterUnitEvent(1796, 2, 'mob1796_Leave')
RegisterUnitEvent(1796, 3, 'mob1796_Kill')
RegisterUnitEvent(1796, 4, 'mob1796_Die')
